package foundation.interceptor;


import foundation.annotation.Auth;
import model.sys.BLogicException;
import model.sys.ErrorMessage;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * @author futao
 * Created on 18-7-23-下午3:04.
 * Auth拦截器
 */
@Auth
public class AuthInterceptor implements MethodInterceptor {

    @Override
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        throw new BLogicException(ErrorMessage.AUTH_FAIL);
    }
}
